<div id="spnoibat">
    <div class="spnoibat-header">
        <p>Sản phẩm nổi bật</p>
    </div>
    <div class="spnoibat-content">
        <?php
        $sql="SELECT * FROM tbl_sanpham WHERE noibat = 1 LIMIT 12";
        $result=mysql_query($sql);
        while($row=mysql_fetch_array($result))
        {
            ?>
            <div class="sanpham">
                <div class="spnoibat-img">
                    <a href="index.php?page=san-pham&list=chi-tiet&id=<?php echo $row['id'];?>"><img src="uploads/<?php echo $row['anhsp']?>" width="110" height="86" class="sp-img"></a>
                </div>
                <div class="spnoibat-main">
                    <h3><a href="index.php?page=san-pham&list=chi-tiet&id=<?php echo $row['id'];?>"><?php echo $row['sanpham']?></a></h3>
                    <p>Giá: <?php echo $row['gia']?></p>
                    <p>Giao hàng: <?php echo $row['giaohang']?></p>
                    <p>Tình trạng: <?php if($row['tinhtrang']==1){echo 'Còn hàng';}else{echo 'Hết hàng';}?></p>
                </div>
            </div>
        <?php
        }
        ?>
    </div>
</div>